package com.gadgets.busi.bm06.fegin;

import com.gadgets.busi.bm06.pojo.TradeNodeInfo;
import com.gadgets.framework.common.dto.HttpBaseResp;
import com.gadgets.framework.common.exception.GadgetsServiceException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 功能说明：
 *
 * @author Unclexiu
 * @version V202101.00.000
 * @data 2022-09-16
 * 修改记录：  修改日期          修改人员    修改说明
 * 2022-09-16  xiujunqing   创建文件
 */
@FeignClient(value = "gadgets-config-framework", contextId = "eupeanTradeInfoController")
public interface IEupeanTradeInfoController {

	@RequestMapping(method = {RequestMethod.POST},value = "/EU4/addTradeInfo.do")
	@SuppressWarnings("rawtypes")
	HttpBaseResp addTradeNodeInfo(@RequestParam Map map) throws GadgetsServiceException;

	/**
	 * 新增贸易节点连接信息
	 * @return                              新增结果
	 * @throws GadgetsServiceException      异常信息
	 */
	@RequestMapping(method = {RequestMethod.POST},value = "/EU4/addTradeLink.do")
	HttpBaseResp<String> addTradeNodeLink(@RequestParam Map map) throws GadgetsServiceException;

	/**
	 * 查询贸易节点信息
	 * @return                          查询结果
	 * @throws GadgetsServiceException  异常信息
	 */
	@RequestMapping(method = {RequestMethod.POST},value = "/EU4/queryTradeNodeInfo.do")
	HttpBaseResp<TradeNodeInfo> selectNodeInfo(@RequestParam Map map) throws GadgetsServiceException;

}
